package cn.com.ebidding.spc.controller;

import cn.com.ebidding.spc.common.CommonResult;
import cn.com.ebidding.spc.common.PaymentInfoVo;
import cn.hutool.core.lang.UUID;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created on 2020/9/17.
 *
 * @author sehuaqi.
 * 描述：服务提供者
 */
@Slf4j
@RestController
public class PaymentController {

    @GetMapping(value = "/payment/get/{id}")
    public CommonResult getPaymentById(@PathVariable("id") Long id) {

        log.info(">>>>>>服务生产者获取到参数 id = {}", id);

        PaymentInfoVo paymentInfoVo = new PaymentInfoVo(id, UUID.fastUUID().toString());

        return new CommonResult(200, "操作成功", paymentInfoVo);
    }

}
